package sctu.edu.java.year2016.team05.zengkun.day20160614.chapter12_3;

import com.sun.java.swing.plaf.windows.WindowsComboBoxUI;
import javafx.embed.swing.JFXPanel;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class EXample1 implements Icon{
   private  int width;
    private  int height;
    public int getLconHeight(){
        return this.height;
    }
 public int getlconWidth(){
     return  this.width;
 }
public EXample1(int width,int height ){
    this.width=width;
    this.height=height;
}
public  void paintlcon(Component arg0,Graphics arg1,int x,int y){


}

    public static void main(String[] args) {
        EXample1 icon=new EXample1(15,15);
        JLabel j=new JLabel("测试",icon,SwingConstants.CENTER);
        JFrame jf=new JFrame();
Container c=jf.getContentPane();    }

    @Override
    public void paintIcon(Component c, Graphics g, int x, int y) {

    }

    @Override
    public int getIconWidth() {
        return 0;
    }

    @Override
    public int getIconHeight() {
        return 0;
    }
}
